import request from "../utils/request.js"

// 请求首页的banner

const userOrderAgreementV2 = (params = {}) => {
	return request('hzsx/api/order/userOrderAgreementV2', params)
}


// 首页
const indexComplexInfo = (params = {}) => {
	return request('hzsx/aliPay/index/indexComplexInfo', params)
}

// 猜你喜欢
const indexMayLikeProductPage = (params = {}) => {
	return request('hzsx/aliPay/index/indexMayLikeProductPage', params)
}

//分类信息
const categoryeInfo = (params = {}) => {
	return request('hzsx/aliPay/category/info', params)
}

//所有分类
const listLiteAll = (params = {}) => {
	return request('hzsx/aliPay/category/listLiteAll', params)
}

//  商家信息：
const businessInformation = (params = {}) => {
	return request('hzsx/aliPay/product/shopInfo', params)
}


// 商家产品
const businessProducts = (params = {}) => {
	return request('hzsx/aliPay/product/selectShopProductPage', params)
}

// 客服首页
const queryOpeNotice = (params = {}) => {
	return request('hzsx/api/opeNotice/queryOpeNoticeTabDetailList', params)
}

// 客服tab问答
const queryCustomerService = (params = {}) => {
	return request('hzsx/api/opeNotice/queryOpeNoticeItemPage', params)
}

// 一元活动
const yiYuanActivity = (params = {}) => {
	return request('hzsx/aliPay/index/getPromotionInfoById?id=2&channelId=001', params)
}




export {
	userOrderAgreementV2,
	indexComplexInfo,
	indexMayLikeProductPage,
	categoryeInfo,
	listLiteAll,
	businessInformation,
	businessProducts,
	queryOpeNotice,
	queryCustomerService,
	yiYuanActivity
}
